package ModelLayer;


/**
 * The class borrow class handels Borrow objects.
 * 
 * @Mikkel Petersen
 * @version 1.0
 */
public class Borrow
{
    private static long id;
    private long borrowId;
    private DvdSpecimen specimen;
    private boolean status;

    /**
     * Constructor for objects of class Borrow.
     */
    public Borrow()
    {
        id++;
        borrowId = id;
        status = true;
    }

    /**
     * Accesser method for borrowId.
     * 
     * @return unique id for object.
     */
    public long getId()
    {
        return borrowId;
    }
    
     /**
     * Accessor method for status.
     * 
     * @return true if avaliable, false if not.
     */
    public boolean getStatus()
    {
        return status;
    }
    
     /**
     * Mutator method for status.
     * 
     * @param true if avaliable, false if not.
     */
    public void setStatus(boolean status)
    {
        this.status = status;
    }
    
    /**
     * Mutator method for specimen.
     * 
     * @param specimen object.
     */
    public void addSpecimen(DvdSpecimen specimen)
    {
        this.specimen = specimen;
    }
    
    /**
     * Get Dvdspecimen object.
     * 
     * @return Dvdspecimen object.
     */
    public DvdSpecimen getSpecimen()
    {
        return specimen;
    }


}
